package display;

import interfaces.IDisplay;
import it.unibo.is.interfaces.IBasicEnvAwt;

/**
 * @author Stefano&Davide
 * @version 1.0
 */

public abstract class Display implements IDisplay{
	
	protected IBasicEnvAwt env;
	protected String curValToShow="error";
	
	public Display(IBasicEnvAwt env){
		this.env=env;
		configure();
	}

	protected abstract void configure();
	
	protected abstract void showVal(String v);
	
	public void update(String val){
		curValToShow=val;
		showVal(getCurValToShow());
	}
	
	public String getCurValToShow(){
		return curValToShow;
	}
		
}
